package org.tech4j.captcha.character.exception;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/4 15:20
 **/
public enum ResponseCode {


    CAPTCHA_ERROR("captcha_error", "验证码错误"),
    CAPTCHA_EXPIRED("captcha_expired", "验证码已过期，请重新发送"),
    CAPTCHA_CODE_EMPTY("captcha_code_empty", "验证码生成为空"),
    CAPTCHA_STORE_EMPTY("captcha_store_empty", "验证码存储器为空"),
    CAPTCHA_STORE_ERROR("captcha_store_error", "验证码存储错误, 原因:[%s]"),
    CAPTCHA_CUSTOM_FUNCTION_ERROR("captcha_custom_function_error", "验证码发送后，自定义功能执行错误, 原因:[%s]"),
    CAPTCHA_SEND_FUNCTION_ERROR("captcha_send_function_error", "验证码发送后，自定义功能执行错误, 原因:[%s]"),
    ;

    private final String errorCode;

    private final String message;

    ResponseCode(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getMessage() {
        return message;
    }
}
